package com.htu.tax.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.htu.tax.entity.Mailaddress;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.CrossOrigin;


import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@CrossOrigin
public interface TAddressMapper extends BaseMapper<Mailaddress> {
    void add(@Param("madness") Mailaddress madness);

    @ApiModelProperty(value = "展示邮寄地址")
    IPage<Mailaddress> get(Page page);

    void updateA(@Param("Id") long id,
                 @Param("name") String name,
                 @Param("phone") String phone,
                 @Param("Province") String Province,
                 @Param("City") String City,
                 @Param("County") String County,
                 @Param("Address") String Address,
                 @Param("Update") LocalDateTime UpdateTime);

//    @Select("select * from mailaddress")
//    List<Map> getList();

}
